import {get,post,put,del} from '@/utils/request/axios';

/**
 * 查询机构列表
 * @param obj
 * @returns {*}
 */
export const findOfficeList = (obj) =>{
  const url = "/api/sys/office/getOfficeList";
  return get(url,obj);
}

/**
 * 新增机构
 * @param obj
 * @returns {*}
 */
export const addOffice = (obj) =>{
  const url = "/api/sys/office/addOffice";
  return post(url,obj);
}

/**
 * 修改机构
 * @param obj
 * @returns {*}
 */
export const updateOffice = (obj) =>{
  const url = "/api/sys/office/updateOffice";
  return post(url,obj);
}

/**
 * 修改机构状态
 * @param obj
 * @returns {*}
 */
export const updateOfficeStatus = (obj) =>{
  const url = "/api/sys/office/updateOfficeStatus";
  return post(url,obj);
}

/**
 * 查询机构选择器Tree
 * @returns {*}
 */
export const findCascaderOffice = () =>{
  const url = "/api/sys/office/getCascaderOffice";
  return get(url);
}
